<?php  
namespace App;  
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class Post extends Model {  

     protected $table = 'posts';
    protected $primaryKey = 'id';
}